package com.email.crontab.oracle.service.impl;

import com.email.crontab.oracle.dao.OracleDao;
import com.email.crontab.oracle.service.OracleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;


@Service
public class OracleServiceImpl implements OracleService {
    @Autowired
    private OracleDao oracleDao;

    @Override
    public List<Map<String, Object>> oracle() {
        return oracleDao.oracle();
    }

    @Override
    public List<LinkedHashMap<String, Object>> oracle(String sql) {
        return oracleDao.oracleForSql(sql);
    }
}
